#include "stm32f10x.h"                  // Device header
#include "Delay.h"
#include "LED.h"
#include "Key.h"
#include "Buzzer.h"
#include "Lightsensor.h"

uint8_t KeyNum = 0;

int main(int argc, char *argv[])
{	
	LED_Init();
	Key_Init();
	Buzzer_Init();
	Lightsensor_Init();
	
	while(1)
	{
		if(Lighsensor_Get() == 1){
			Buzzer_On();
		}
		else{
			Buzzer_Off();
		}
	}
	
	return 1;
}

